package odgs.manager.filedb;

import java.io.Serializable;

import odgs.ContentsFile;

public class FileDBContentsFile implements Serializable
{
	private int uid;
	private int contentsUid;
	private String nodeId;
	private long start;
	private long end;

	public FileDBContentsFile(int uid, String nodeId, int contentsUID, long start, long end)
	{
		this.uid = uid;
		this.nodeId = nodeId;
		this.contentsUid = contentsUID;
		this.start = start;
		this.end = end;
	}

	public boolean equals(Object o)
	{
		FileDBContentsFile file = (FileDBContentsFile) o;
		if(file.getUid() == uid)
			return true;
		return false;
	}
	
	public int getContentsUid()
	{
		return contentsUid;
	}

	public void setContentsUid(int contentsUid)
	{
		this.contentsUid = contentsUid;
	}
	public void setUid(int uid)
	{
		this.uid = uid;
	}
	
	public int getUid()
	{
		return uid;
	}
	
	public long getEnd()
	{
		return end;
	}

	public void setEnd(long end)
	{
		this.end = end;
	}

	public String getNodeId()
	{
		return nodeId;
	}

	public void setNodeId(String nodeId)
	{
		this.nodeId = nodeId;
	}

	public long getStart()
	{
		return start;
	}

	public void setStart(long start)
	{
		this.start = start;
	}
}
